<?php
include "baidu.php";
$username=$_GET['username'];
$name=$_GET['name'];
$str=translate("$username",'auto',"$name");
print_r("翻译的结果是".$str['trans_result'][0]['dst']);